home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / database / postgres / mpsql-1.001 / mpsql-1~ / mpsql-1.0 / mquel.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-01-29  |  3.0 KB  |  58 lines

  1. /************************************************************************/
  2. /* File   : mquel.h                                        */
  3. /* Purpose: mquel module header                                    */
  4. /* By     : Keith R. Davis                                          */
  5. /* Date   : 12/27/95                                        */
  6. /* Notes  : Copyright(c) 1996 White River Software                      */
  7. /************************************************************************/
  8.  
  9. #ifndef _MQUEL_H
  10. #define _MQUEL_H
  11.  
  12. /* widget struct */
  13. typedef struct _mquel_widgets{
  14.   Widget                   shell,        /* application shell            */
  15.             menu,        /* application menu            */
  16.                         buffermenu,     /* buffer submenu                       */
  17.                         btnbar,        /* button bar                    */
  18.                         btn_new,        /* new SQL file button                  */
  19.                         btn_open,       /* open file button                     */
  20.                         btn_save,       /* save file button                     */
  21.                         btn_print,      /* print file button                    */  
  22.             btn_exe,    /* execute qy button            */
  23.                         btn_spool,      /* spool results to file button         */
  24.                         btn_connect,    /* connect to database button           */
  25.             pane,        /* paned workspace            */
  26.             mainwindow,    /* application main window        */
  27.             sqlwindow,    /* SQL window                    */
  28.             resultwindow,    /* query result window                */
  29.                         msgframe,       /* frame for message widget             */ 
  30.             message,    /* label widget for messages        */
  31.                         tglspool,       /* spool toggle                         */
  32.                         tglcol,         /* col heading toggle                   */
  33.                         tglecho,        /* echo query toggle                    */
  34.                         spoolfile,      /* spool file                           */
  35.                         colwidth,       /* column width                         */
  36.                         none,           /* column separator                     */
  37.                         tab,            /* column separator                     */
  38.                         space,          /* column separator                     */
  39.                         comma,          /* column separator                     */
  40.                         database,       /* database selection                   */
  41.                         host,           /* connection host                      */
  42.                         port,           /* connection port                      */
  43.                         printer;        /* printer                              */
  44. }MQUELwidgets;
  45.  
  46. extern MQUELwidgets *AppWidgetsPtr;     /* global pointer to app widgets        */
  47.  
  48. /* gets app options from setup file */
  49. int MQUEL_GetOptions(void);
  50.  
  51. /* saves app options to setup file  */
  52. int MQUEL_SaveOptions(void);
  53.  
  54. /* processes cmd line args          */
  55. int MQUEL_GetCmdLineArg(int argc, char **argv);
  56.     
  57. #endif    
  58.